package com.neu.service.impl;

import com.neu.dto.ShopDTO;
import com.neu.mapper.ShopMapper;
import com.neu.service.ShopService;
import com.neu.vo.ShopVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {


    @Autowired
    ShopMapper shopVOMapper;

    @Override
    public List<ShopVO> find(ShopDTO shopDTO) {
        return shopVOMapper.find(shopDTO);
    }

    @Override
    public ShopVO login(String name, String password) {
        return shopVOMapper.login(name,password);
    }

    @Override
    public List<ShopVO> selectAll() {
        return shopVOMapper.selectAll();
    }

    @Override
    public List<ShopVO> selectByBannerId(Integer bannerId) {
        return shopVOMapper.selectByShopId(bannerId);
    }
}
